import request from '../utils/request';

export const CodingGet = query => {
    return request({
        url: 'api/services/app/WorkOrder/GetPageShow',
        method: 'get',
        params: query
    });
};
export const CodingGetId = id => {
    return request({
        url: 'api/services/app/WorkOrder/GetById?id='+id,
        method: 'get',
    });
};
export const PutCoding = data => {
    return request({
        url: 'api/services/app/WorkOrder/PutCodingrule',
        method: 'put',
        data: data,
    });
};

export const CodingGetExcel = data => {
    return request({
        responseType:'blob',
        url: 'api/CodingExcel/CodingFile',
        method: 'get',
        data
    });
};

